package com.crm.service.impl;

import com.crm.dao.CustomerLossDao;
import com.crm.entity.CustomerLoss;
import com.crm.service.CustomerLossService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 客户流失Service接口实现
 *
 * @author Administrator
 */
@Service("customerLossService")
public class CustomerLossServiceImpl implements CustomerLossService {

    @Resource
    private CustomerLossDao customerLossDao;

    @Override
    public List<CustomerLoss> find(Map<String, Object> map) {
        return customerLossDao.find(map);
    }

    @Override
    public Long getTotal(Map<String, Object> map) {
        return customerLossDao.getTotal(map);
    }

    @Override
    public CustomerLoss findById(Integer id) {
        return customerLossDao.findById(id);
    }

    @Override
    public int update(CustomerLoss customerLoss) {
        return customerLossDao.update(customerLoss);
    }
}
